{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport RcTooltip from 'rc-tooltip';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isValidElement, isFragment } from '../_util/reactNode';\nimport warning from '../_util/warning';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport { parseColor } from './util';\nvar splitObject = function splitObject(obj, keys) {\n  var picked = {};\n  var omitted = Object.assign({}, obj);\n  keys.forEach(function (key) {\n    if (obj && key in obj) {\n      picked[key] = obj[key];\n      delete omitted[key];\n    }\n  });\n  return {\n    picked: picked,\n    omitted: omitted\n  };\n};\n// Fix Tooltip won't hide at disabled button\n// mouse events don't trigger at disabled button in Chrome\n// https://github.com/react-component/tooltip/issues/18\nfunction getDisabledCompatibleChildren(element, prefixCls) {\n  var elementType = element.type;\n  if ((elementType.__ANT_BUTTON === true || element.type === 'button') && element.props.disabled || elementType.__ANT_SWITCH === true && (element.props.disabled || element.props.loading) || elementType.__ANT_RADIO === true && element.props.disabled) {\n    // Pick some layout related style properties up to span\n    // Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254\n    var _splitObject = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),\n      picked = _splitObject.picked,\n      omitted = _splitObject.omitted;\n    var spanStyle = Object.assign(Object.assign({\n      display: 'inline-block'\n    }, picked), {\n      cursor: 'not-allowed',\n      width: element.props.block ? '100%' : undefined\n    });\n    var buttonStyle = Object.assign(Object.assign({}, omitted), {\n      pointerEvents: 'none'\n    });\n    var child = cloneElement(element, {\n      style: buttonStyle,\n      className: null\n    });\n    return /*#__PURE__*/React.createElement(\"span\", {\n      style: spanStyle,\n      className: classNames(element.props.className, \"\".concat(prefixCls, \"-disabled-compatible-wrapper\"))\n    }, child);\n  }\n  return element;\n}\nvar Tooltip = /*#__PURE__*/React.forwardRef(function (props, ref) {\n  var _a, _b;\n  var customizePrefixCls = props.prefixCls,\n    openClassName = props.openClassName,\n    getTooltipContainer = props.getTooltipContainer,\n    overlayClassName = props.overlayClassName,\n    color = props.color,\n    overlayInnerStyle = props.overlayInnerStyle,\n    children = props.children,\n    afterOpenChange = props.afterOpenChange,\n    afterVisibleChange = props.afterVisibleChange;\n  var _React$useContext = React.useContext(ConfigContext),\n    getContextPopupContainer = _React$useContext.getPopupContainer,\n    getPrefixCls = _React$useContext.getPrefixCls,\n    direction = _React$useContext.direction;\n  if (process.env.NODE_ENV !== 'production') {\n    [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange']].forEach(function (_ref) {\n      var _ref2 = _slicedToArray(_ref, 2),\n        deprecatedName = _ref2[0],\n        newName = _ref2[1];\n      process.env.NODE_ENV !== \"production\" ? warning(!(deprecatedName in props), 'Tooltip', \"`\".concat(deprecatedName, \"` is deprecated, please use `\").concat(newName, \"` instead.\")) : void 0;\n    });\n  }\n  var _useMergedState = useMergedState(false, {\n      value: (_a = props.open) !== null && _a !== void 0 ? _a : props.visible,\n      defaultValue: (_b = props.defaultOpen) !== null && _b !== void 0 ? _b : props.defaultVisible\n    }),\n    _useMergedState2 = _slicedToArray(_useMergedState, 2),\n    open = _useMergedState2[0],\n    setOpen = _useMergedState2[1];\n  var isNoTitle = function isNoTitle() {\n    var title = props.title,\n      overlay = props.overlay;\n    return !title && !overlay && title !== 0; // overlay for old version compatibility\n  };\n\n  var onOpenChange = function onOpenChange(vis) {\n    var _a, _b;\n    setOpen(isNoTitle() ? false : vis);\n    if (!isNoTitle()) {\n      (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);\n      (_b = props.onVisibleChange) === null || _b === void 0 ? void 0 : _b.call(props, vis);\n    }\n  };\n  var getTooltipPlacements = function getTooltipPlacements() {\n    var builtinPlacements = props.builtinPlacements,\n      _props$arrowPointAtCe = props.arrowPointAtCenter,\n      arrowPointAtCenter = _props$arrowPointAtCe === void 0 ? false : _props$arrowPointAtCe,\n      _props$autoAdjustOver = props.autoAdjustOverflow,\n      autoAdjustOverflow = _props$autoAdjustOver === void 0 ? true : _props$autoAdjustOver;\n    return builtinPlacements || getPlacements({\n      arrowPointAtCenter: arrowPointAtCenter,\n      autoAdjustOverflow: autoAdjustOverflow\n    });\n  };\n  // 动态设置动画点\n  var onPopupAlign = function onPopupAlign(domNode, align) {\n    var placements = getTooltipPlacements();\n    // 当前返回的位置\n    var placement = Object.keys(placements).find(function (key) {\n      var _a, _b;\n      return placements[key].points[0] === ((_a = align.points) === null || _a === void 0 ? void 0 : _a[0]) && placements[key].points[1] === ((_b = align.points) === null || _b === void 0 ? void 0 : _b[1]);\n    });\n    if (!placement) {\n      return;\n    }\n    // 根据当前坐标设置动画点\n    var rect = domNode.getBoundingClientRect();\n    var transformOrigin = {\n      top: '50%',\n      left: '50%'\n    };\n    if (/top|Bottom/.test(placement)) {\n      transformOrigin.top = \"\".concat(rect.height - align.offset[1], \"px\");\n    } else if (/Top|bottom/.test(placement)) {\n      transformOrigin.top = \"\".concat(-align.offset[1], \"px\");\n    }\n    if (/left|Right/.test(placement)) {\n      transformOrigin.left = \"\".concat(rect.width - align.offset[0], \"px\");\n    } else if (/right|Left/.test(placement)) {\n      transformOrigin.left = \"\".concat(-align.offset[0], \"px\");\n    }\n    domNode.style.transformOrigin = \"\".concat(transformOrigin.left, \" \").concat(transformOrigin.top);\n  };\n  var getOverlay = function getOverlay() {\n    var title = props.title,\n      overlay = props.overlay;\n    if (title === 0) {\n      return title;\n    }\n    return overlay || title || '';\n  };\n  var getPopupContainer = props.getPopupContainer,\n    _props$placement = props.placement,\n    placement = _props$placement === void 0 ? 'top' : _props$placement,\n    _props$mouseEnterDela = props.mouseEnterDelay,\n    mouseEnterDelay = _props$mouseEnterDela === void 0 ? 0.1 : _props$mouseEnterDela,\n    _props$mouseLeaveDela = props.mouseLeaveDelay,\n    mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,\n    overlayStyle = props.overlayStyle,\n    otherProps = __rest(props, [\"getPopupContainer\", \"placement\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"overlayStyle\"]);\n  var prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n  var rootPrefixCls = getPrefixCls();\n  var injectFromPopover = props['data-popover-inject'];\n  var tempOpen = open;\n  // Hide tooltip when there is no title\n  if (!('open' in props) && !('visible' in props) && isNoTitle()) {\n    tempOpen = false;\n  }\n  var child = getDisabledCompatibleChildren(isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children), prefixCls);\n  var childProps = child.props;\n  var childCls = !childProps.className || typeof childProps.className === 'string' ? classNames(childProps.className, _defineProperty({}, openClassName || \"\".concat(prefixCls, \"-open\"), true)) : childProps.className;\n  // Style\n  var _useStyle = useStyle(prefixCls, !injectFromPopover),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  // Color\n  var colorInfo = parseColor(prefixCls, color);\n  var formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);\n  var arrowContentStyle = colorInfo.arrowStyle;\n  var customOverlayClassName = classNames(overlayClassName, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), colorInfo.className, hashId);\n  return wrapSSR( /*#__PURE__*/React.createElement(RcTooltip, Object.assign({}, otherProps, {\n    placement: placement,\n    mouseEnterDelay: mouseEnterDelay,\n    mouseLeaveDelay: mouseLeaveDelay,\n    prefixCls: prefixCls,\n    overlayClassName: customOverlayClassName,\n    overlayStyle: Object.assign(Object.assign({}, arrowContentStyle), overlayStyle),\n    getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n    ref: ref,\n    builtinPlacements: getTooltipPlacements(),\n    overlay: getOverlay(),\n    visible: tempOpen,\n    onVisibleChange: onOpenChange,\n    afterVisibleChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,\n    onPopupAlign: onPopupAlign,\n    overlayInnerStyle: formattedOverlayInnerStyle,\n    arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n      className: \"\".concat(prefixCls, \"-arrow-content\")\n    }),\n    motion: {\n      motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', props.transitionName),\n      motionDeadline: 1000\n    }\n  }), tempOpen ? cloneElement(child, {\n    className: childCls\n  }) : child));\n});\nif (process.env.NODE_ENV !== 'production') {\n  Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Tooltip;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","classNames","RcTooltip","useMergedState","React","ConfigContext","getTransitionName","getPlacements","cloneElement","isValidElement","isFragment","warning","PurePanel","useStyle","parseColor","splitObject","obj","keys","picked","omitted","assign","forEach","key","getDisabledCompatibleChildren","element","prefixCls","elementType","type","__ANT_BUTTON","props","disabled","__ANT_SWITCH","loading","__ANT_RADIO","style","spanStyle","display","cursor","width","block","undefined","buttonStyle","pointerEvents","child","className","createElement","Tooltip","forwardRef","ref","_a","_b","customizePrefixCls","openClassName","getTooltipContainer","overlayClassName","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","useContext","getContextPopupContainer","getPopupContainer","getPrefixCls","direction","process","env","NODE_ENV","_ref","deprecatedName","newName","value","open","visible","defaultValue","defaultOpen","defaultVisible","setOpen","isNoTitle","title","overlay","onOpenChange","vis","onVisibleChange","getTooltipPlacements","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","onPopupAlign","domNode","align","placements","placement","find","points","rect","getBoundingClientRect","transformOrigin","top","left","test","height","offset","getOverlay","mouseEnterDelay","mouseLeaveDelay","overlayStyle","otherProps","rootPrefixCls","injectFromPopover","tempOpen","childProps","childCls","wrapSSR","hashId","colorInfo","formattedOverlayInnerStyle","arrowContentStyle","arrowStyle","customOverlayClassName","arrowContent","motion","motionName","transitionName","motionDeadline","displayName","_InternalPanelDoNotUseOrYouWillBeFired"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/tooltip/index.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport classNames from 'classnames';\nimport RcTooltip from 'rc-tooltip';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isValidElement, isFragment } from '../_util/reactNode';\nimport warning from '../_util/warning';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport { parseColor } from './util';\nconst splitObject = (obj, keys) => {\n  const picked = {};\n  const omitted = Object.assign({}, obj);\n  keys.forEach(key => {\n    if (obj && key in obj) {\n      picked[key] = obj[key];\n      delete omitted[key];\n    }\n  });\n  return {\n    picked,\n    omitted\n  };\n};\n// Fix Tooltip won't hide at disabled button\n// mouse events don't trigger at disabled button in Chrome\n// https://github.com/react-component/tooltip/issues/18\nfunction getDisabledCompatibleChildren(element, prefixCls) {\n  const elementType = element.type;\n  if ((elementType.__ANT_BUTTON === true || element.type === 'button') && element.props.disabled || elementType.__ANT_SWITCH === true && (element.props.disabled || element.props.loading) || elementType.__ANT_RADIO === true && element.props.disabled) {\n    // Pick some layout related style properties up to span\n    // Prevent layout bugs like https://github.com/ant-design/ant-design/issues/5254\n    const {\n      picked,\n      omitted\n    } = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']);\n    const spanStyle = Object.assign(Object.assign({\n      display: 'inline-block'\n    }, picked), {\n      cursor: 'not-allowed',\n      width: element.props.block ? '100%' : undefined\n    });\n    const buttonStyle = Object.assign(Object.assign({}, omitted), {\n      pointerEvents: 'none'\n    });\n    const child = cloneElement(element, {\n      style: buttonStyle,\n      className: null\n    });\n    return /*#__PURE__*/React.createElement(\"span\", {\n      style: spanStyle,\n      className: classNames(element.props.className, `${prefixCls}-disabled-compatible-wrapper`)\n    }, child);\n  }\n  return element;\n}\nconst Tooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n  var _a, _b;\n  const {\n    prefixCls: customizePrefixCls,\n    openClassName,\n    getTooltipContainer,\n    overlayClassName,\n    color,\n    overlayInnerStyle,\n    children,\n    afterOpenChange,\n    afterVisibleChange\n  } = props;\n  const {\n    getPopupContainer: getContextPopupContainer,\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  if (process.env.NODE_ENV !== 'production') {\n    [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange']].forEach(_ref => {\n      let [deprecatedName, newName] = _ref;\n      process.env.NODE_ENV !== \"production\" ? warning(!(deprecatedName in props), 'Tooltip', `\\`${deprecatedName}\\` is deprecated, please use \\`${newName}\\` instead.`) : void 0;\n    });\n  }\n  const [open, setOpen] = useMergedState(false, {\n    value: (_a = props.open) !== null && _a !== void 0 ? _a : props.visible,\n    defaultValue: (_b = props.defaultOpen) !== null && _b !== void 0 ? _b : props.defaultVisible\n  });\n  const isNoTitle = () => {\n    const {\n      title,\n      overlay\n    } = props;\n    return !title && !overlay && title !== 0; // overlay for old version compatibility\n  };\n\n  const onOpenChange = vis => {\n    var _a, _b;\n    setOpen(isNoTitle() ? false : vis);\n    if (!isNoTitle()) {\n      (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);\n      (_b = props.onVisibleChange) === null || _b === void 0 ? void 0 : _b.call(props, vis);\n    }\n  };\n  const getTooltipPlacements = () => {\n    const {\n      builtinPlacements,\n      arrowPointAtCenter = false,\n      autoAdjustOverflow = true\n    } = props;\n    return builtinPlacements || getPlacements({\n      arrowPointAtCenter,\n      autoAdjustOverflow\n    });\n  };\n  // 动态设置动画点\n  const onPopupAlign = (domNode, align) => {\n    const placements = getTooltipPlacements();\n    // 当前返回的位置\n    const placement = Object.keys(placements).find(key => {\n      var _a, _b;\n      return placements[key].points[0] === ((_a = align.points) === null || _a === void 0 ? void 0 : _a[0]) && placements[key].points[1] === ((_b = align.points) === null || _b === void 0 ? void 0 : _b[1]);\n    });\n    if (!placement) {\n      return;\n    }\n    // 根据当前坐标设置动画点\n    const rect = domNode.getBoundingClientRect();\n    const transformOrigin = {\n      top: '50%',\n      left: '50%'\n    };\n    if (/top|Bottom/.test(placement)) {\n      transformOrigin.top = `${rect.height - align.offset[1]}px`;\n    } else if (/Top|bottom/.test(placement)) {\n      transformOrigin.top = `${-align.offset[1]}px`;\n    }\n    if (/left|Right/.test(placement)) {\n      transformOrigin.left = `${rect.width - align.offset[0]}px`;\n    } else if (/right|Left/.test(placement)) {\n      transformOrigin.left = `${-align.offset[0]}px`;\n    }\n    domNode.style.transformOrigin = `${transformOrigin.left} ${transformOrigin.top}`;\n  };\n  const getOverlay = () => {\n    const {\n      title,\n      overlay\n    } = props;\n    if (title === 0) {\n      return title;\n    }\n    return overlay || title || '';\n  };\n  const {\n      getPopupContainer,\n      placement = 'top',\n      mouseEnterDelay = 0.1,\n      mouseLeaveDelay = 0.1,\n      overlayStyle\n    } = props,\n    otherProps = __rest(props, [\"getPopupContainer\", \"placement\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"overlayStyle\"]);\n  const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n  const rootPrefixCls = getPrefixCls();\n  const injectFromPopover = props['data-popover-inject'];\n  let tempOpen = open;\n  // Hide tooltip when there is no title\n  if (!('open' in props) && !('visible' in props) && isNoTitle()) {\n    tempOpen = false;\n  }\n  const child = getDisabledCompatibleChildren(isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children), prefixCls);\n  const childProps = child.props;\n  const childCls = !childProps.className || typeof childProps.className === 'string' ? classNames(childProps.className, {\n    [openClassName || `${prefixCls}-open`]: true\n  }) : childProps.className;\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls, !injectFromPopover);\n  // Color\n  const colorInfo = parseColor(prefixCls, color);\n  const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);\n  const arrowContentStyle = colorInfo.arrowStyle;\n  const customOverlayClassName = classNames(overlayClassName, {\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, colorInfo.className, hashId);\n  return wrapSSR( /*#__PURE__*/React.createElement(RcTooltip, Object.assign({}, otherProps, {\n    placement: placement,\n    mouseEnterDelay: mouseEnterDelay,\n    mouseLeaveDelay: mouseLeaveDelay,\n    prefixCls: prefixCls,\n    overlayClassName: customOverlayClassName,\n    overlayStyle: Object.assign(Object.assign({}, arrowContentStyle), overlayStyle),\n    getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n    ref: ref,\n    builtinPlacements: getTooltipPlacements(),\n    overlay: getOverlay(),\n    visible: tempOpen,\n    onVisibleChange: onOpenChange,\n    afterVisibleChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,\n    onPopupAlign: onPopupAlign,\n    overlayInnerStyle: formattedOverlayInnerStyle,\n    arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n      className: `${prefixCls}-arrow-content`\n    }),\n    motion: {\n      motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', props.transitionName),\n      motionDeadline: 1000\n    }\n  }), tempOpen ? cloneElement(child, {\n    className: childCls\n  }) : child));\n});\nif (process.env.NODE_ENV !== 'production') {\n  Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Tooltip;"],"mappings":";;AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAAC;EACjG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAA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